/*
 * @Author: yehongbo 1394168736@qq.com
 * @Date: 2024-05-15 15:02:52
 * @LastEditors: yehongbo 1394168736@qq.com
 * @LastEditTime: 2024-06-04 09:57:44
 * @FilePath: \myWorkspace\react-basic\vite.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
  resolve: {
    // 设置别名
    alias: {
      '@': '/src',
      'components': '/src/components'
    }
  },
  plugins: [react()],
  server: {
    host: '0.0.0.0'
  }
})
